// import _ from "Lodash";
import "./style/1.css";
import url from "./img/a.jpg";
async function component() {
  var element = document.createElement('div');

  // Lodash（目前通过一个 script 脚本引入）对于执行这一行是必需的
  const _ = await import("Lodash");
  element.innerHTML = _.join(['Hello', 'webpack'], ' ');
  var img = new Image();
  img.src = url;
  element.appendChild(img);
  return element;
}
component().then(x => {
    app.appendChild(x);
});
document.onclick = async function() {
    var tools = await import("@Tools/utils");
    console.log(tools.utils);
    var tools2 = await import("@Tools/utils");
    console.log(tools2)
}